import Login from '../page/Login';
import Article from '../page/Article';
import Layout2 from '../page/Layout2';
import About from '../page/About';
import Board from '../page/Board';
import NotFound from '../page/NotFound'
//////////////
import Layout from "@/page/tally book/Layout"
import New from "@/page/tally book/New"
import Mouth from "@/page/tally book/Mouth"
import Year from "@/page/tally book/Year"

import { createBrowserRouter,createHashRouter } from 'react-router-dom';

const router = createBrowserRouter([
  {
    path: '/',
    element: <Layout />,
    children:[
      {
        index:true,
        element: <Mouth />,
      },
      {
        path: 'year',
        element: <Year />,
      },
    ]
  },
  {
    path: '/new',
    element: <New />,
  },
  {
    path: '/layout',
    element: <Layout2 />,
    children: [
      {
        // path: 'board',
        index:true,
        element: <Board />,
      },
      {
        // index:true,
        path: 'about',
        element: <About />,
      },
    ],
  },
  {
    path: '/login',
    element: <Login />,
  },
  {
    path: '/article/:id/:name',
    element: <Article />,
  },
  {
    path: '*',
    element: <NotFound />,
  },
]);

export default router;
